package com.turing.post.organization.util;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author zxp
 * @date 2012-12-14
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "SYSBRANCH")
public class SysBranch implements java.io.Serializable {

	/**
	 * 01 – 发卡商
	 */
	public static final String SYSBRANCH_ISSUECOMPANY = "01";

	/**
	 * 11 – 发卡机构
	 */
	public static final String SYSBRANCH_ISSUEBRANCH = "11";

	/**
	 * 02 – 销售
	 */
	public static final String SYSBRANCH_SALECOMPANY = "02";

	/**
	 * 12 – 销售机构
	 */
	public static final String SYSBRANCH_SALEBRANCH = "12";

	/**
	 * 03 –商户
	 */
	public static final String SYSBRANCH_MERCHANT = "03";

	/**
	 * 13 – 商户机构
	 */
	public static final String SYSBRANCH_MERCHANTBRANCH = "13";
    /**
     * 机构号
     */
	private String branchNo;
	/**
	 * 机构类型
	 */
	private String branchType;
	
	private Integer orderSeqNo;

	public SysBranch() {
	}

	public SysBranch(String branchNo, String branchType) {
		this.branchNo = branchNo;
		this.branchType = branchType;
	}

	@Id
	@Column(name = "BRANCHNO", unique = true, nullable = false)
	public String getBranchNo() {
		return branchNo;
	}

	public void setBranchNo(String branchNo) {
		this.branchNo = branchNo;
	}

	@Column(name = "BRANCHTYPE", nullable = false)
	public String getBranchType() {
		return branchType;
	}

	public void setBranchType(String branchType) {
		this.branchType = branchType;
	}

	@Column(name = "ORDERSEQNO")
	public Integer getOrderSeqNo() {
		return orderSeqNo;
	}

	public void setOrderSeqNo(Integer orderSeqNo) {
		this.orderSeqNo = orderSeqNo;
	}

	/**
	 * 查询公司机构类别列表信息
	 * 
	 * @return 公司机构类别列表信息
	 */
	public static List<String[]> getSysBranchBranchTypeList() {
		List<String[]> list = new ArrayList<String[]>();
		list.add(new String[] { SYSBRANCH_ISSUECOMPANY, "发卡商" });
		list.add(new String[] { SYSBRANCH_ISSUEBRANCH, "发卡商机构" });
		list.add(new String[] { SYSBRANCH_SALECOMPANY, "销售商" });
		list.add(new String[] { SYSBRANCH_SALEBRANCH, "销售商机构" });
		list.add(new String[] { SYSBRANCH_MERCHANT, "商户" });
		list.add(new String[] { SYSBRANCH_MERCHANTBRANCH, "商户机构" });
		return list;
	}
}